Adjust custom target test for workspace-relative hashing
authorTyler Hall <tylerwhall@gmail.com>
Sun, 29 Jan 2017 22:55:38 +0000 (17:55 -0500)
committerTyler Hall <tyler.hall@lexmark.com>
Sun, 25 Jun 2017 21:45:08 +0000 (17:45 -0400)
commit58da6b05d47da76bd8309745ae1c271b948ae900
tree142d170a454b6bcccd3c6408ba5a21a73b160910
parentabf01e1eddb3145c83f71b469ea7bee37141e5e1
Adjust custom target test for workspace-relative hashing

Switching to workspace-relative metadata hashing means that output can
change based on what is considered to be the top-level crate. This test
is affected by this change, but in general hashes should be more stable
than before.

This test verifies that a crate will not rebuild when built as a
dependency of two different crates but with the same CARGO_TARGET_DIR.
This currently relies on the absolute path to the crate being the same
across runs. Set an explicit workspace so the hashes will be the same
when using workspace-relative hashing.

Setting a workspace would cause the target dir to be the same in both
invocations, defeating the intent of this test, so move the target dir
between runs to verify that the contents of the target dir are not
dependent on its path.
tests/path.rs